<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>闰年</title>
	</head>
	<body>
		<script>
			var year = prompt("请您输入一个年份");
			if(year%4 == 0 && year%100 != 0 || year%400 == 0){
				document.write("这个年份是闰年！");
			}
			else{
				document.write("这个年份不是个闰年！");
			}
		</script>
	</body>
</html>
